package mybatis.interfaces.impl;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import mybatis.interfaces.IPageQueryCondition;

import java.util.Map;

/**
 * @author CKC
 */
@NoArgsConstructor
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Data
public class PageQueryCondition implements IPageQueryCondition {

    private static final long serialVersionUID = 8732195471017648377L;

    @ApiModelProperty(name = "page[?]", value = "分页查询，current 页码，从1开始, 大于0，缺省1; size 一页的大小，大于0, 缺省10，最大1000; 例如: page[current]=1&page[size]=5 表示 取 第1页的5条数据的数据")
    @JsonIgnore
    private final transient String pageSwaggerView = null;
    protected Map<String, Integer> page;

}
